package is.glif.fenius.rrm;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class RrmServlet  extends HttpServlet {
    public static final long serialVersionUID = 1L;
    public static Proxy p;

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html");
        response.setStatus(HttpServletResponse.SC_OK);

	if (p == null) p = Proxy.getInstance();
	String s = p.getRrmInfo(false);
        response.getWriter().println(s);
     }

    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request, response);
    }
}
